//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
/*
 *  linux/include/asm-arm/arch-pxa/omega.h
 *
 *  Orignal Author: Nicolas Pitre
 *  
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef _ASM_ARCH_OMEGA_H_
#define _ASM_ARCH_OMEGA_H_

#define GPIO_PCF50606_INT 0

#if 0 // change in P2
#define SPI_SCLK 36
#define SPI_TXD  13
#define SPI_FRM      19
#else
#define B_SPI_SCLK_GPIO  36
#define SPI_TXD  13
#define SPI_FRM  14
#endif

#define B_LCD_nRESET_GPIO 24
#define B_LCD_RS_GPIO    77

#define B_AV_nRESET_GPIO                119
#define B_AV_PWREN_GPIO                 82

//#define B_AV_nRESET_GPIO 25
//#define B_AV_PWREN_GPIO  90

/* SD card detect interrupt */
#define MMC_CARD_DETECT_GPIO 9
#define MMC_CARD_DETECT_IRQ  IRQ_GPIO(MMC_CARD_DETECT_GPIO)

/* Flip sensor interrupt */
#define FLIP_SENSOR1_GPIO  15
#define FLIP1_IRQ  IRQ_GPIO(FLIP_SENSOR1_GPIO)

#define FLIP_SENSOR3_GPIO  116
#define FLIP3_IRQ  IRQ_GPIO(FLIP_SENSOR3_GPIO)

#define FLIP_SENSOR4_GPIO  23
#define FLIP4_IRQ  IRQ_GPIO(FLIP_SENSOR4_GPIO)

#endif // _ASM_ARCH_OMEGA_H_
